package com.anolesoft.twelveFactory.planManagement.mapper;

import com.anolesoft.twelveFactory.planManagement.entity.Process;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProcessMapper extends BaseMapper<Process>{
    //查询
    List<Process> listProcess(@Param("process") Process process, Page<Process> page);

    //计划下达页面所有数据
    List<Process> selectCheckplan(@Param("process") Process process, Page<Process> page);

    //通过id查询
    Process selectById(String objuid);

//    没有条件查询所有
    List<Process> select();

//    通过th查询
    Process selectByTh(String th);

//修改
    Integer update(Process process);

    //添加
    Integer Insert(Process process);

//    查询process的机型 动态下拉
    List<Process> selectForJx();

//    通过唯一字段查询
    Process selectByWYZD(String wyzd);


}
